Hi Henk,
The first obvious thing to check would be the Digital IO Screen. Check if bit 135 does in fact work with the Spindle turned on.
Regards TK
Group: DynoMotion |
Message: 5577 |
From: Lee Studley |
Date: 8/21/2012 |
Subject: Re: G31 stop working on spindle power up |
Henk,
Just curious, why would you have the spindle active on a G31? (
defined: G31 Skip function (used for probes and tool length measurement
systems) )
-Lee
On 8/21/2012 4:48 AM, Henk wrote:
> Dear Tom,
>
> I've got something strange. Going on.
> When the spindle servo is switched off, all works fine, meaning, G31 stops when bit 135 comes up, all variable are pushed across and M6 works as well.
> Now, when I power up the spindle servo, G31 stops working, it doesn't stop on bit 135.
> The only connections between the servo and the kanalog are the encoder signals to and the analog output back to the servo, all other safeties are external via relays.
> Enable or disable the axis does not make a difference.
> I use the standard probing macro.
>
> Can you maybe give me a hind or direction where I should look, I'm stuck.
>
> Many thanks
>
> Regards
>
> Henk
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
>
|
|
Group: DynoMotion |
Message: 5578 |
From: Lee Studley |
Date: 8/21/2012 |
Subject: Re: G31 stop working on spindle power up |
My point being: G31 seems to be a vaguely defined Gcode. I see that
different venders define it differently. Some restrict it to probing,
EMC doesn't define it.
The only example that was clear( albeit I don't think there is a
standard for it ) is at:
http://www.instruction.greenriver.edu/manufacturing/08Spr/NC%20PGM.pdf
on page 82:
Example =======
The following program example finds the center point within a box when
run on the control.
NC Part Program 1 Inch
G31_TEXT.FNC
%
(GO TO INITIAL PART ZERO)
G01 X0 Y0 F15.
G31 X7 F15.
#2001 = #5061
G01 X0 Y0 F25.
G31 X-7 F15.
#2002 = #5061
#2003 = [#2002+#2001]/Z
G01X#2005Y#2006F25.
N100 M00
G31 Y5 F15.
#2004 = #5062
G01 X#2003 Y0F25.
G31 Y-5 F15.
#2005 = #5062
#2006 = [#2004+#2005]/Z
(THE SPINDLE NOW MOVES TO THE CENTER OF THE BOX)
G01 X#2003 Y#2006
====================================================
On 8/21/2012 11:16 AM, Lee Studley wrote:
> Henk,
> Just curious, why would you have the spindle active on a G31? (
> defined: G31 Skip function (used for probes and tool length measurement
> systems) )
>
> -Lee
>
> On 8/21/2012 4:48 AM, Henk wrote:
>> Dear Tom,
>>
>> I've got something strange. Going on.
>> When the spindle servo is switched off, all works fine, meaning, G31 stops when bit 135 comes up, all variable are pushed across and M6 works as well.
>> Now, when I power up the spindle servo, G31 stops working, it doesn't stop on bit 135.
>> The only connections between the servo and the kanalog are the encoder signals to and the analog output back to the servo, all other safeties are external via relays.
>> Enable or disable the axis does not make a difference.
>> I use the standard probing macro.
>>
>> Can you maybe give me a hind or direction where I should look, I'm stuck.
>>
>> Many thanks
>>
>> Regards
>>
>> Henk
>>
>> ------------------------------------
>>
>> Yahoo! Groups Links
>>
>>
>>
>>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
>
|
|
Group: DynoMotion |
Message: 5579 |
From: studleylee |
Date: 8/21/2012 |
Subject: Re: G31 stop working on spindle power up |
OK, I just found the help on: Mach3 Plugin - Probe Setup
That jives well with the example below.
Hmmm, I almost wonder if the spindle should be set to zero rpm prior to the G31. A wired probe
would be unhappy to be spun up, but an intentional slow spindle rotation to an angle, then stop/brake tol hold it rigid might be usable.
So the issue of having the spindle active but at 0rpm might still be a question?
This is a cool thought puzzle :-) What do you guys think? -Lee
--- In DynoMotion@yahoogroups.com, Lee Studley <indigo_red@...> wrote:
>
> My point being: G31 seems to be a vaguely defined Gcode. I see that
> different venders define it differently. Some restrict it to probing,
> EMC doesn't define it.
> The only example that was clear( albeit I don't think there is a
> standard for it ) is at:
>
> http://www.instruction.greenriver.edu/manufacturing/08Spr/NC%20PGM.pdf
>
> on page 82:
>
> Example =======
> The following program example finds the center point within a box when
> run on the control.
> NC Part Program 1 Inch
> G31_TEXT.FNC
> %
> (GO TO INITIAL PART ZERO)
> G01 X0 Y0 F15.
> G31 X7 F15.
> #2001 = #5061
> G01 X0 Y0 F25.
> G31 X-7 F15.
> #2002 = #5061
> #2003 = [#2002+#2001]/Z
> G01X#2005Y#2006F25.
> N100 M00
> G31 Y5 F15.
> #2004 = #5062
> G01 X#2003 Y0F25.
> G31 Y-5 F15.
> #2005 = #5062
> #2006 = [#2004+#2005]/Z
> (THE SPINDLE NOW MOVES TO THE CENTER OF THE BOX)
> G01 X#2003 Y#2006
> ====================================================
>
> On 8/21/2012 11:16 AM, Lee Studley wrote:
> > Henk,
> > Just curious, why would you have the spindle active on a G31? (
> > defined: G31 Skip function (used for probes and tool length measurement
> > systems) )
> >
> > -Lee
> >
> > On 8/21/2012 4:48 AM, Henk wrote:
> >> Dear Tom,
> >>
> >> I've got something strange. Going on.
> >> When the spindle servo is switched off, all works fine, meaning, G31 stops when bit 135 comes up, all variable are pushed across and M6 works as well.
> >> Now, when I power up the spindle servo, G31 stops working, it doesn't stop on bit 135.
> >> The only connections between the servo and the kanalog are the encoder signals to and the analog output back to the servo, all other safeties are external via relays.
> >> Enable or disable the axis does not make a difference.
> >> I use the standard probing macro.
> >>
> >> Can you maybe give me a hind or direction where I should look, I'm stuck.
> >>
> >> Many thanks
> >>
> >> Regards
> >>
> >> Henk
> >>
> >> ------------------------------------
> >>
> >> Yahoo! Groups Links
> >>
> >>
> >>
> >>
> >
> >
> > ------------------------------------
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
>
|
|
Group: DynoMotion |
Message: 5580 |
From: Tom Kerekes |
Date: 8/21/2012 |
Subject: Re: G31 stop working on spindle power up |
Hi Lee,
Yes it crossed my mind that Mach3 might intentionally inhibit probing if the Spindle is on, but going ahead and doing the probe motion but not stopping would make no sense.
Also noise from the Spindle might cause the probe to false trigger, but that would cause the motion to stop early rather than not at all.
First thing to check as I asked before is to check if the signal indeed works with the Spindle turned on and there is no weird wiring issue.
Regards
TK
Group: DynoMotion |
Message: 5581 |
From: Lee Studley |
Date: 8/21/2012 |
Subject: Re: G31 stop working on spindle power up |
Hi Tom,
I hope I'm not being overbearing on my posts? Let me know if I
ever get that way.
I was just tossing out my thoughts as I learn on this too.
I'm not a CNC expert by any means so G31 is one I haven't played
with yet. Just an enthusiastic hobby proto guy.
You are 100% right: check the basics first :-)
I went nuts on my retrofit and made a crazy current-limited loops
for my limit switches. That way if a wire ever gets pinched or
opens it
creates an ESTOP. Uses ony 2 switches/axis for limits, refHome,
and extremes_estop.
-Lee
On 8/21/2012 1:00 PM, Tom Kerekes wrote:
Hi Lee,
Yes it
crossed my mind that Mach3 might intentionally inhibit
probing if the Spindle is on, but going ahead and doing the
probe motion but not stopping would make no sense.
Also noise
from the Spindle might cause the probe to false trigger, but
that would cause the motion to stop early rather than not at
all.
First thing
to check as I asked before is to check if the signal indeed
works with the Spindle turned on and there is no weird
wiring issue.
Regards
TK
|
|
Group: DynoMotion |
Message: 5582 |
From: Tom Kerekes |
Date: 8/21/2012 |
Subject: Re: G31 stop working on spindle power up |
Hi Lee,
No worries. I appreciate greatly your participation.
TK
Group: DynoMotion |
Message: 5594 |
From: Henk |
Date: 8/22/2012 |
Subject: Re: G31 stop working on spindle power up |
Hi Tom,
Got it working, however .
I've changed the probe input to bit 142 (opto in) updated the bit numbers in my code (didn't change the functionality of the code) and it works. So the question is, can't you use a general input to stop motion?
Also I've changed over to use KmotionCNC, and dropped Mach3, It needed to much work around to get things done, and all the OEMCodes.
I have to say the product you guys have developed is amazing, very powerfull and flexible, a bit a learning curve, but the more I get into it, the more I participate it.
Thanks
Henk Sterk
Sent from my iPad
On 22/08/2012, at 1:36, Tom Kerekes <tk@...> wrote:
Hi Henk,
The first obvious thing to check would be the Digital IO Screen. Check if bit 135 does in fact work with the Spindle turned on.
Regards TK
Group: DynoMotion |
Message: 5597 |
From: Tom Kerekes |
Date: 8/22/2012 |
Subject: Re: G31 stop working on spindle power up |
Hi Henk,
Thanks for letting us know you got it working. Any type of input should have worked. But of course the wiring and circuity must be correct so that the input changes properly. You never explained how things were wired or if you checked if the Input was shown switching properly on the Digital IO Screen. Opto inputs are a different type of input than the General Purpose Inputs. Optos are more like a current input. Current is needed to flow to light the
LED. So a simple switch can be used to allows current to flow when closed or to stop current from flowing when open. The GP inputs are more like a voltage sensor and require almost zero current (megohms of impedance). The pin must be driven high (>2.8V) or driven low (< 0.4V) to work properly. A simple mechanical switch might be used to drive a signal when the switch is closed, but when the switch is open it is not driving the signal at all. A common mistake I see Users make is that they assume that an undriven signal will assume some state like 0V. But this is often not the case. The signal can float to any voltage level. It will often drift to the signal nearest to it because of some parasitic leakage resistance or capacitance. The solution is usually to add a pull up or pull down resistor to pull the signal to a known voltage. I apologize if you are familiar with all this but I'm
unfamiliar with your background. And besides I wanted to point this out for other Users.
Thanks for the compliment - one day we hope to make things simpler but still with the same power and flexibility.
Regards TK
| |
| | | | | | | |